package com.componentscan.component;

import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

/**
 * @author fanxiao  2022/4/19
 * @since 1.0.0
 */
@Slf4j
@Component
@ToString
public class Eoo implements EnvironmentAware {

	public Eoo(){
		log.info("Eoo instantiated");
	}

	@Override
	public void setEnvironment(Environment environment) {
		String key = environment.getProperty("key");
		log.info("key:{}",key);
	}
}